

var option = {
	title: {

	},
	tooltip: {
		trigger: 'item',
		formatter: "{b}<br/> {c} ({d}%)"
	},
	toolbox: {

	},
	grid: {
		top: '8%',
		containLabel: true
	},
	calculable: true,
	series: [{
		name: '',
		type: 'pie',
		// radius : [15, 75],
		// center : ['75%', 200],
		roseType: 'area',
		// x: '50%',               // for funnel
		// max: 40,                // for funnel
		sort: 'ascending', // for funnel
		data: [{
				value: 200,
				name: '活动作业'
			},
			{
				value: 300,
				name: '安全防护设施拆除'
			},
			{
				value: 300,
				name: '施工现场危险作业'
			},
			{
				value: 120,
				name: '交叉作业'
			},
			{
				value: 268,
				name: '起重作业'
			}
		],
		label: {
			normal: {
				formatter: '{b}\n {c} ({d}%)',
				color: '#1efcff'
			}
		},
		itemStyle: {
			normal: {
				color: function(params) {
					var colorList1 = ['#34d3f5', '#f22284', '#14f9a5', '#54ec44', '#ff3e30']
					var colorList2 = ['#3795ff', '#833af7', '#11d4b9', '#cabe3b', '#ffc218']
					return new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
							offset: 0,
							color: colorList1[params.dataIndex]
						},
						{
							offset: 1,
							color: colorList2[params.dataIndex]
						}
					])
				}
			}
		}
	}]
};

var chart = echarts.init(document.getElementById('company2-chart1'));
chart.setOption(option);